package com.xbongbong.pro.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @description: 公司公告记录
 * @Author: hongxiao
 * @date: 2019-03-25 17:21
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ActivityCorpEntity extends Entity {
    /**
     * 主键
     */
    private Long id;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 参与公司
     */
    private String corpid;
    /**
     * 参与人
     */
    private String userId;
    /**
     * 参与人手机号
     */
    private String mobile;
    /**
     * 平台
     */
    private String platform;
    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标志位
     */
    private Integer del;

    public ActivityCorpEntity() {

        long now = DateUtil.getInt();
        this.addTime = now;
        this.updateTime = now;
        this.del = 0;
    }

    public ActivityCorpEntity(Long activityId, String corpid, String userId, String mobile){
        this();
        this.activityId = activityId;
        this.corpid = corpid;
        this.userId = userId;
        this.mobile = mobile;
    }
}
